﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using StoreManagementSystem;
using StoreManagementSystem.DomainObjects;

namespace StoreTester
{
    [TestFixture]
    class CategoryTester
    {
        [Test]
        public void CreateCategory()
        {
            Category cat = new Category();
            Assert.AreEqual(cat.id, 0);
            cat.Name = "toothbrush";
            Assert.AreEqual(cat.Name, "toothbrush");
        }

        [Test]
        public void CreateCategoryWithConstructor()
        {
            Category Cat = new Category(2, "shampoo");
            Assert.AreEqual(Cat.id, 2);
            Assert.AreEqual(Cat.Name, "shampoo");
        }
    }
}
